package com.hogae.capital.service;

import java.util.List;
import com.hogae.capital.domain.CapPoolAccount;

/**
 * 资金池账户Service接口
 * 
 * @author hogae
 * @date 2021-02-26
 */
public interface ICapPoolAccountService 
{
    /**
     * 查询资金池账户
     * 
     * @param id 资金池账户ID
     * @return 资金池账户
     */
    CapPoolAccount selectCapPoolAccountById(Long id);

    /**
     * 查询资金池账户列表
     * 
     * @param capPoolAccount 资金池账户
     * @return 资金池账户集合
     */
    List<CapPoolAccount> selectCapPoolAccountList(CapPoolAccount capPoolAccount);

    /**
     * 新增资金池账户
     * 
     * @param capPoolAccount 资金池账户
     * @return 结果
     */
    int insertCapPoolAccount(CapPoolAccount capPoolAccount);

    /**
     * 修改资金池账户
     * 
     * @param capPoolAccount 资金池账户
     * @return 结果
     */
    int updateCapPoolAccount(CapPoolAccount capPoolAccount);

    /**
     * 批量删除资金池账户
     * 
     * @param ids 需要删除的资金池账户ID
     * @return 结果
     */
    int deleteCapPoolAccountByIds(Long[] ids);

    /**
     * 删除资金池账户信息
     * 
     * @param id 资金池账户ID
     * @return 结果
     */
    int deleteCapPoolAccountById(Long id);

    /**
     * 修改资金池账户禁用
     *
     * @param capPoolAccount 资金池账户
     * @return 结果
     */
    int updateCapPoolAccountStatus(CapPoolAccount capPoolAccount);

    /**
     * 获取该用户下级id
     * @return
     */
    List selectByUserId(List userIdList);
}
